package com.rightsidetech.mall.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.mall.dto.request.TypePageReq;
import com.rightsidetech.mall.dto.request.TypeReq;
import com.rightsidetech.mall.dto.request.TypeUpReq;
import com.rightsidetech.mall.dto.response.TypePageResp;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.ResponseData;

import java.util.List;

public interface MallTypeService {

    ResponseData save(TypeReq req,String createrName,Long createrId);

    ResponseData update(TypeUpReq req, String updaterName, Long updaterId);

    ResponseData isDelete(DelReq req);

    ResponseData<PageInfo<TypePageResp>> page(TypePageReq req);

    ResponseData<List<TypePageResp>> getChildList(Long id);

    ResponseData<List<TypePageResp>> getAll();

    ResponseData<List<TypePageResp>> getAppTypeList(Long agentId);
}
